package com.fxl.majiang.message.output;

import com.fxl.majiang.enums.TilesEnum;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**
 * @author fengxinglei
 * @date 2022/8/7 11:35
 * @description 用户出牌提醒
 */
@Data
@AllArgsConstructor
public class OutputPlayedCardMsgData implements OutputMessageData {

    private static final long serialVersionUID = -5012555071564266798L;
    /**
     * 打牌人的userId
     */
    private String userId;

    /**
     * 玩家打出的牌
     */
    private TilesEnum tile;

    private String nextUserId;

    private boolean canNextGrabbing;
    /**
     * 是否能吃这张牌
     */
    private Boolean canChiIt = false;

    /**
     * 可以吃的牌组
     */
    private List<List<TilesEnum>> chiItGroups;

    /**
     * 是否能碰这张牌
     */
    private Boolean canPengIt = false;

    /**
     * 是否能明杠这张牌
     */
    private Boolean canMingGangIt = false;

    /**
     * 是否可以点炮
     */
    private Boolean canDianPaoIt = false;

    public OutputPlayedCardMsgData(String userId, TilesEnum tile) {
        this.userId = userId;
        this.tile = tile;
    }
}
